<%--
  Created by IntelliJ IDEA.
  User: 王翔宇
  Date: 22-3-25
  Time: 10:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>用户列表</title>
</head>
<body>
<table>
    <thead>
    <tr>
        <td>id</td>
        <td>用户名</td>
        <td>密码</td>
        <td>昵称</td>
        <td>类型</td>
    </tr>
    </thead>
    <tbody>
    <c:forEach items="${userList}" var="item">
        <tr>
            <td><a href="${pageContext.request.contextPath}/user/detail?id=${item.id}">${item.id}</a></td>
            <td>${item.username}</td>
            <td>${item.password}</td>
            <td>${item.nickname}</td>
            <td>${item.type}</td>
        </tr>
    </c:forEach>
    </tbody>
</table>
</body>
</html>
